package idk;

import j3dscene.Screen;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 * Initiatorclass, creates Swing-Window and initiates the Screen.
 *
 * @author Steffen G.
 * @author Dominik K.
 */
public class IDK {

    /*
     * Main Window
     */
    private static MainFrame window;

    /**
     * @param args Commandline arguments
     */
    public static void main(String[] args) {
        Screen.init();
        window = new MainFrame();
        //getWindow().add(Screen.getCanvas());
        getWindow().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        getWindow().setTitle("Interactive Drum Kit 1.0");
        //getWindow().setSize(640, 550);
        getWindow().setVisible(true);
        
        String informationMsg = "Welcome to the  Interactive DrumKit!\r\n" +
                "Click on the different elements of the drumkit to " +
                "generate sounds and animations.\r\n" +
                "To rotate the view press and hold the left mouse button " +
                "on the window.\r\n" + 
                "Your last chosen element will be displayed at the bottom. " +
                "Have fun!\r\n" +
                "Design and program by Steffen G. and Dominik K.";
        JOptionPane.showMessageDialog(null, informationMsg, "Welcome!",
                JOptionPane.INFORMATION_MESSAGE);
    }

    /**
     * @return the window
     */
    public static MainFrame getWindow() {
        return window;
    }
}
